/**
 * Number.java
 * 
 * This class is a concrete handler in the Chain of Responsibility pattern. It
 * represents a ball being rolled that is not a spare or a strike. The score
 * returned by getCalculatedScore is simply the number of pins knocked down.
 * 
 * @author Robert Yates
 */
public class Number extends ScoreHandler {

	/**
	 * Construct a number with a given score.
	 * 
	 * @param score		The original score of the ball.
	 */
	public Number(int score) {
		setOriginalScore(score);
	}
	
	/**
	 * Returns the most accurate calculation of the score.
	 * 
	 * @return 		The original score plus any subsequent scores if they are 
	 *         		used to calculate this total score.
	 */
	public int getCalculatedScore() {
		// A plain number's score do not depend on subsequent scores.
		return originalScore;
	}
}
